package com.heyqing.topic.RepeatedSubstringPattern_0459;

/**
 * ClassName:RepeatedSubstringPattern
 * Package:com.heyqing.topic.RepeatedSubstringPattern_0459
 * Description:
 *
 * @Date:2024/9/30
 * @Author:Heyqing
 */
public class RepeatedSubstringPattern {
    public boolean repeatedSubstringPattern(String s) {
        return (s + s).indexOf(s, 1) != s.length();
    }
}
